﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

using Lextm.SharpSnmpLib;
//using Lextm.SharpSnmpLib.Mib;

namespace SnmpWorkshop.Tools 
{
  public abstract class HandyLogClient
  {  

    public enum Severities {Warning, Minor, Major, Critical};
    private static Hashtable keyList= new Hashtable();    

    static int count= 1;

    public void KeyAdd( string _key)
    {
      if( keyList[ _key]== null)
        throw( new ApplicationException( "key already registered"));

      keyList.Add( _key, 1);
    }

    public static void Write( string _header, string _message)
    {
      Console.Write( String.Format( "\n[{0}] {1}: {2}\n", count++, _header, _message));
    }
  }


  //public class MibCompiler
  //{
  //  public static void Compile( string _directory, string _fileName)
  //  {
  //    Parser parser= new Parser();

  //    string filename= _directory+ "\\"+ _fileName;

  //    List<string> fileNameList= new List<string>();
  //    fileNameList.Add( filename);
      
  //    IEnumerable<CompilerError> errorList;
  //    IEnumerable<CompilerWarning> warningList;

  //    parser.ParseToModules( fileNameList, out errorList, out warningList);
  //  }
  //}
}


